package com.httpDemo.config.swagger;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * swagger参数配置类
 * 
 * @author Administrator
 *
 */
@Component
@ConfigurationProperties(prefix = "swagger")
@Data
public class SwaggerProperties {

	/**
	 * swagger会解析的包路径
	 */
	private String basePackage;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 版本
	 */
	private String version;
	/**
	 * host信息
	 */
	private String host;
	/**
	 * 联系人信息
	 */
	private Contact contact = new Contact();

	@Data
	public static class Contact {

		/**
		 * 联系人
		 **/
		private String name = "";
		/**
		 * 联系人url
		 **/
		private String url = "";
		/**
		 * 联系人email
		 **/
		private String email = "";

	}

}
